package com.ruoyi.project.storage.metadataproperty.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;
import java.util.Date;

/**
 * 数据字段对象 metadata_property
 * 
 * @author shixiangwen
 * @date 2020-02-27
 */
public class MetadataProperty extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 属性名称 */
    @Excel(name = "属性名称")
    private String name;

    /** 属性类型 */
    @Excel(name = "属性类型")
    private String type;

    /** 默认值 */
    @Excel(name = "默认值")
    private String defaultVal;

    /** 最大长度 */
    @Excel(name = "最大长度")
    private Long maxLength;

    /** 最小长度 */
    @Excel(name = "最小长度")
    private Long minLength;

    /** 不允许为空 */
    @Excel(name = "不允许为空")
    private Integer notNull;

    /** 主键 */
    @Excel(name = "主键")
    private Integer primaryKey;

    /** 父关联外键 */
    @Excel(name = "父关联外键")
    private Integer isParent;

    /** 说明 */
    @Excel(name = "说明")
    private String comment;

    /** 创建时间 */
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdTime;

    /** metadataId */
    @Excel(name = "metadataId")
    private String metadataId;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }
    public void setDefaultVal(String defaultVal) 
    {
        this.defaultVal = defaultVal;
    }

    public String getDefaultVal() 
    {
        return defaultVal;
    }
    public void setMaxLength(Long maxLength) 
    {
        this.maxLength = maxLength;
    }

    public Long getMaxLength() 
    {
        return maxLength;
    }
    public void setMinLength(Long minLength) 
    {
        this.minLength = minLength;
    }

    public Long getMinLength() 
    {
        return minLength;
    }
    public void setNotNull(Integer notNull) 
    {
        this.notNull = notNull;
    }

    public Integer getNotNull() 
    {
        return notNull;
    }
    public void setPrimaryKey(Integer primaryKey) 
    {
        this.primaryKey = primaryKey;
    }

    public Integer getPrimaryKey() 
    {
        return primaryKey;
    }
    public void setIsParent(Integer isParent) 
    {
        this.isParent = isParent;
    }

    public Integer getIsParent() 
    {
        return isParent;
    }
    public void setComment(String comment) 
    {
        this.comment = comment;
    }

    public String getComment() 
    {
        return comment;
    }
    public void setCreatedTime(Date createdTime) 
    {
        this.createdTime = createdTime;
    }

    public Date getCreatedTime() 
    {
        return createdTime;
    }
    public void setMetadataId(String metadataId) 
    {
        this.metadataId = metadataId;
    }

    public String getMetadataId() 
    {
        return metadataId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("type", getType())
            .append("defaultVal", getDefaultVal())
            .append("maxLength", getMaxLength())
            .append("minLength", getMinLength())
            .append("notNull", getNotNull())
            .append("primaryKey", getPrimaryKey())
            .append("isParent", getIsParent())
            .append("comment", getComment())
            .append("createdTime", getCreatedTime())
            .append("metadataId", getMetadataId())
            .toString();
    }
}
